package com.devunion.salon.client.app.bean;

import com.extjs.gxt.ui.client.data.BaseModel;

import java.io.Serializable;
import java.util.List;

/**
 * @author Timoshenko Alexander 01.03.2009 : 11:57:55
 */
public class CompanyBeanModel extends BaseModel implements Serializable {
    public CompanyBeanModel() {
    }

    public CompanyBeanModel(String businessName) {
        setBusinessName(businessName);
    }

    public CompanyBeanModel(String businessName, List<OfficeBeanModel> offices) {
        this(businessName);
        setOffices(offices);
    }

    public void setBusinessName(String businessName) {
        set("businessName", businessName);
    }

    public String getBusinessName() {
        return get("businessName");
    }

    public void setOffices(List<OfficeBeanModel> offices) {
        set("offices", offices);
    }

    public List<OfficeBeanModel> getOffices() {
        return get("offices");
    }
}
